import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
    name: 'constantTransfer',
    pure: true
})
export class ConstantTransferPipe implements PipeTransform {
    transform(value, args: any[]){
        if(args){
            for(let i in args){
                if(value==args[i].value){
                    return args[i].label
                }
            }
        }
        return value;
    }
}